#ifndef WIFI_BOARD_H
#define WIFI_BOARD_H

#include "board.h"
#include "boards/audio_codecs/audio_codec.h"

class WifiBoard : public Board {
protected:
    // WIFI连接标识
    bool wifi_config_mode_ = false;

public:
    // 构造函数（检测Wi-Fi连接状态）
    WifiBoard();
    
    // wifi配网模式
    void EnterWifiConfigMode();
    // 启动WIFI自动配网
    void StartNetwork() override;
    // WebSocket客户端初始
    WebSocket* CreateWebSocket(std::string url) override;
    
    bool GetNetworkState(std::string& network_name, int& signal_quality, std::string& signal_quality_text) override;

    // Audio驱动初始化
    AudioCodec* GetAudioCodec() override;  

};

#endif // WIFI_BOARD_H

